all:writer read

writer:write.cpp contacts.pb.cc
	g++ -o $@ $^ -std=c++14 -lprotobuf

read:read.cpp contacts.pb.cc
	g++ -o $@ $^ -std=c++14 -lprotobuf
.PHONY:clean
clean:
	rm -f writer read


# all:writer read
# write:writer.cc contacts.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lprotobuf
# read:read.cc contacts.pb.cc
# 	g++ -o $@ $^ -std=c++11 -lprotobuf
# .PHONY:clean
# clean:
# 	rm -f write read